package net.hn.hnms.biz.gasext.dws.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.hn.hnms.biz.gasext.dws.domain.DwdCoalMineProduceDurationRtDPo;
import net.hn.hnms.biz.gasext.dws.domain.dto.EffectiveProductionTimeByMineCodeDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 重大设备运行时长Mapper
 */
@DS(value = "dwd")
public interface DwdCoalMineProduceDurationRtDMapper extends BaseMapper<DwdCoalMineProduceDurationRtDPo> {

    /**
     * 根据煤矿编码获取有效生产时长
     * @param mineCode
     * @param day
     * @return
     */
    List<EffectiveProductionTimeByMineCodeDto> getEffectiveProductionTimeByMineCodeAndDay(@Param("mineCode") String mineCode, @Param("day") String day);
}
